package com.example.daiyinuo.observer;

public class Clinet {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();//建立一个新的主题对象
        CurrentObserver currentObserver = new CurrentObserver(weatherData);//注册订阅
        weatherData.setMeasurements(1.2f,2.3f,3.4f);

    }
}
